<?php
require_once 'Junction/Utils/Strings.php';

define('Junction_GET_METHOD', 'get');
define('Junction_SET_METHOD', 'set');

class Junction_Utils_Mapping {
	
	
	public static function isGetMethod($method) {
		return Junction_Utils_Strings::startsWith($method, Junction_GET_METHOD);
	}
	
	public static function isSetMethod($method) {
		return Junction_Utils_Strings::startsWith($method, Junction_SET_METHOD);
	}
	
	public static function getPropertyNameFrom($method) {
		return substr($method, 3);
	}
	
	public static function getGetMethodFor($property) {
		return Junction_GET_METHOD . $property;
	}
	
	public static function getSetMethodFor($property) {
		return Junction_SET_METHOD . $property;
	}
}
?>